<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core" template="/WEB-INF/layouts/standard.xhtml">
	<ui:define name="content">

		<p:panel header="List Users">
			<h:form>
				<p:dataTable value="#{userController.users}" var="user" widgetVar="tbl" id="usrtbl">
					<p:column headerText="Tenant" filterBy="#{user.tenant}" filterMatchMode="contains">
						<h:outputText value="#{user.tenant}" />
					</p:column>
					<p:column headerText="Username" filterBy="#{user.userName}" filterMatchMode="contains">
						<h:outputText value="#{user.userName}" />
					</p:column>
					<p:column headerText="Authorities">
						<h:outputText value="#{user.roles}" />
					</p:column>
				</p:dataTable>
				
			</h:form>
		</p:panel>
	</ui:define>
</ui:composition>
